package ${package}.${module.packageName}.service;

<@point name="JAVA:IMPORT" />
<#if extParam.GEN_DEFAULT_FIELD == true>
import java.util.Date;
</#if>
<#assign classComment = "${module.explain}业务对象">
<#include "../javadoc/classComment.ftl">
public class ${module.name} {
	
	<#list module.fields as field>
	private ${field.type.simpleJavaType} ${field.name};<#if (field.explain)??>//${field.explain}</#if>
	</#list>
	<#if extParam.GEN_DEFAULT_FIELD == true>
	private Date createDate;
	private Date invalidDate;
	private String createUser;
	private Integer state;
	</#if>
	
	<#if (module.relation)??>
	private ${module.relation.relationModule.name} ${module.relation.relationModule.name ? uncap_first};
	</#if>
	<#list module.fields as field>
	
	public void set${field.name ? cap_first}(${field.type.simpleJavaType} ${field.name}){
		this.${field.name} = ${field.name};
	}
	
	public ${field.type.simpleJavaType} get${field.name ? cap_first}(){
		return ${field.name};
	}
	</#list>
	
	<#if (module.relation)??>
	<#assign relationModule=module.relation.relationModule>
	public void set${relationModule.name}(${relationModule.name} ${relationModule.name ? uncap_first}){
		this.${relationModule.name ? uncap_first} = ${relationModule.name ? uncap_first};
	}
	
	public ${relationModule.name} get${relationModule.name}(){
		return ${relationModule.name ? uncap_first};
	}
	</#if>
	<#if extParam.GEN_DEFAULT_FIELD == true>
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public Date getInvalidDate() {
		return invalidDate;
	}

	public void setInvalidDate(Date invalidDate) {
		this.invalidDate = invalidDate;
	}

	public String getCreateUser() {
		return createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}
	</#if>
}